package com.lb.design.pattern.singleton.hungry;

/**
 * @author lb
 * @Title: HungryStaticSingleton
 * @Description: TODO
 * @date 2019/03/12  14:03
 */
public class HungryStaticSingleton {
    private static HungryStaticSingleton hungryStaticSingleton = null;
    static {
        hungryStaticSingleton = new HungryStaticSingleton();
    }
    private HungryStaticSingleton(){}
    public static HungryStaticSingleton getInstance(){
        return hungryStaticSingleton;
    }
}
